<?php
if (!isset($_GET["name"]) && !isset($_GET["stockInfo"])){
	require_once ("cntrlr/mainpage.php");

} else {
	$factory = Factories::Init();
	$db      = $factory->databaseObject("select", "stocks");
	$obj = $db-> rowByName($_GET["name"]);
	if ($obj->getId()==null){
		require_once ("cntrlr/mainpage.php");
	} else {
		require_once ("vw/userside/stockView.php");
	}
}
?>
